import Mock from 'mockjs'

let random = Mock.Random
export default {
	tag: () => {
		return {
			state: 200,
			method: 'get',
			code: 10000,
			requestId: random.string('lower', 15),
			path: '/tag/home',
			message: '成功',
			timestamp: random.now('yyyy-MM-dd HH:mm:ss.SSSZ'),
			data: [
				{
					linkNum: random.integer(0, 1000),
					name: random.ctitle(1, 3),
					heat: random.integer(0, 10)
				},
				{
					linkNum: random.integer(0, 1000),
					name: random.ctitle(1, 3),
					heat: random.integer(0, 10)
				},
				{
					linkNum: random.integer(0, 1000),
					name: random.ctitle(1, 3),
					heat: random.integer(0, 10)
				}
			]
		}
	}
}
